package cn.stylefeng.guns.modular.leaveinfo.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.LeaveInfoPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LeaveInfoMapper extends BaseMapper<LeaveInfoPO> {
    List<LeaveInfoPO> list(@Param("page") Page page, @Param("condition") String condition,
                           @Param("aid") Long aid, @Param("bid") Long bid, @Param("cid") Long cid, @Param("status") Integer status);

    Long insertAndGetId(@Param("leaveInfoPO") LeaveInfoPO leaveInfoPO);

}

